import request from '@/utils/request'


// 分页
export function getPage(data) {
    return request({
        url: '/Purchase_accessories/accessories_page',
        method: 'post', 
        data: data
    })
}
// 列表
export function getList(data, page) {
    return request({
        url: '/Purchase_accessories/accessories_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
export function addcar_submit(data){
    return request({
        url: '/Purchase_accessories/add_accessories_to_cart',
        method: 'post',
        data: data
    })
}
export function car(data){
    return request({
        url: '/Purchase_accessories/accessories_cart_gift',
        method: 'post',
        data: data
    })
}
export function getHouse(data){
    return request({
        url: '/General/get_house',
        method: 'post', 
        data: data
    })
}
export function getHouseInfo(data){
    return request({
        url: '/House/info',
        method: 'post',
        data: data
    })
}

export function delaccessories(data){
    return request({
        url: '/Purchase_accessories/del_accessories_from_cart',
        method: 'post',
        data: data
    })
}
export function delCarList(data){
    return request({
        url: '/Purchase_accessories/clean_cart_accessories',
        method: 'post',
        data: data
    })
}
export function save(data){
    return request({
        url: '/Purchase_accessories/create_accessories_order',
        method: 'post',
        data: data
    })
}

export function get_goods_type(data){
    return request({
        url: '/Purchase_accessories/get_goods_type',
        method: 'post',
        data: data
    })
}
